#ifndef UTILS_H
#define UTILS_H

#include <cstdint>

namespace OHOS {
namespace DistributedHardware {
#define BUFF_LENTH 1024
#define NAME_LENTH 64
#define INVALID_SOCKET -1

struct  TimeData
{
    uint64_t t1;
    uint64_t t2;
    uint64_t t3;
    uint64_t t4;
    char hostname[NAME_LENTH];
};
static TimeData timed;

uint64_t GetCurrentTime();
}
}
#endif